<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
	<form class="form-horizontal business-form" id="credit-infob">
		<div class="current-state-bno">
			<div class="submit-buttonleft">
				<button class="btn-danger-my btn  btn-success" type="button" onclick="createsmcsRecord();">新增</button>
			</div>
		</div>
		<div class="ibox-content" style="clear: none;">
			<div class="jqGrid_wrapper">
				<table id="table_list_3"></table>
				<div id="pager_list_3"></div>
			</div>
		</div>
	</form>
	
	<%@include file="/jsp/comm_js_include.jsp"%>
	<script type="text/javascript">
	var winWidthsm = $("#table_list_2").parent('div.ibox-content').width();
    var winHeightsm = document.body.offsetHeight - 450;
    var getCollectionHome=function(){
	    var win = winWidth / 7 - 20;
 	    $.jgrid.defaults.styleUI = 'Bootstrap';
 	    var data={};
 	    data.busiId=$.getUrlData("busiId");
 	    data.orderSql="created desc";
		$("#table_list_3").jqGrid({
			show:false,
			url:'${basePath}/DhOverdueCollectionHomeController/list',
	       	datatype : "json",
	       	postData:data,
		    colNames : ['催收时间', '催收结果','诚信状态', '催收记录','记录时间','记录人'],
		    colModel : [ 
	             {name: 'timeCollection',index: 'timeCollection',width: win,align: "center",sorttype: "float",formatter:function(a,b,c){
                      	 return formateStringDate(a);
                    }},
	             {name: 'resultCollectionDisplay',index: 'resultCollection',width: win,align: "center",sorttype: "float"},
	             {name: 'statusTrustCusDisplay',index: 'statusTrustCus',width: win,align: "center",sorttype: "float"},
	             {name: 'remarks',index: 'remarks',width: win,align: "center",sorttype: "float"},
	             {name: 'jlTime',index: 'jlTime',width: win,align: "center",sorttype: "float",formatter:function(a,b,c){
                      	 return formateStringDate(a);
                    }},
	             {name: 'creatorName',index: 'creatorName',width: win,align: "center",sorttype: "float"}
	             ],
	           mtype : "post",
	           height: winHeightsm,
	           width:winWidthsm,  
	           autowidth: false,
	           shrinkToFit: false,
	           rowNum: 15,
	           rowList: [15, 30, 45],
	           viewrecords: true,
	           pager: "#pager_list_3",
	           hidegrid: false,
	           multiselect : false,		//实现单选    multiboxonly:true   beforeSelectRow: true,
	           multiboxonly:false,  
	           altRows:true,
	           altclass:'someClass',
	           beforeSelectRow: false,
	           jsonReader: {
	                root: "result.rows",
	                page: "result.page",
	                total: "result.total",
	                records: "result.records",
	                repeatitems: false,
	                id: "id"
	            },
	            loadComplete:function(datas){
	          	  if (datas.flag == "100100") {
	                   // layer.msg("查询成功!", {icon: 6, time: 1000});
	                    return;
	                }
	          	  if(datas.flag == '100802') {
	  				  top.location.href = thisLoginUrl;
	  				  return;
	  			  }

	          	  layer.msg(datas.message, {icon: 2});
	            }
	      });
       }
       
	</script>